#pragma once
#include "UIImgGdiplus.h"

class CUIGridImgPlus : public CUIImgGdiplus
{
public:
    CUIGridImgPlus( void );

    virtual ~CUIGridImgPlus( void );

    void Draw( HDC hDC );

    void SetMargin( const RECT& rcMargin );

    void SetSize( int iWidth, int iHeight );
private:

    void CalcImgGrid();

    void CalcGird();

    RECT m_rcMargin;
    BOOL IsMargin();
    static const int m_iGridCount = 9;
    RECT m_rcGridImg[m_iGridCount];
    RECT m_rcGrid[m_iGridCount];
};

